
use combined_for_panel

drop if xconst<0
drop if energy==. | forest==. | mineral==.


gen loggdppc=log(gdppc)
gen logdensity=log(density)
gen lognatural=log(natural_pc)
gen logproduced=log(produced_pc)
gen loghuman=log(human_pc)



gen constraint=(xconst==7)

xtset id year



reg sum constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman i.year, vce(cluster id)
xtreg sum constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman i.year, re robust
xtreg sum constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman i.year, fe robust

xtreg energy constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, fe robust
xtreg forest constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, fe robust
xtreg mineral constraint efindex v2xcl_prpty loggdppc logdensity lognatural logproduced loghuman, fe robust


log close
